commit
00b616ba9d92a492b0c4e5101b58fff6506591ef removed the call to
`QScopedPointer::take` as it's considered deprecated in Qt 6.1 and
advises to use `std::unique_ptr` with `release()` instead
--> replace `QScopedPointer` with `std::unique_ptr` and call its
`release()` method as part of the cast to `QQuickWindow*`
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
// This call dialog gets deallocated on close conditions
// by a call from the QML side to the destroyDialog slot
- auto dialog = QScopedPointer(conflictsDialog->createWithInitialProperties(initialProperties));
+ auto dialog = std::unique_ptr<QObject>(conflictsDialog->createWithInitialProperties(initialProperties));
if (!dialog) {
return;
}
dialog->setParent(QGuiApplication::instance());
- auto dialogWindow = qobject_cast<QQuickWindow*>(dialog.data());
+ auto dialogWindow = qobject_cast<QQuickWindow*>(dialog.release());
if (!dialogWindow) {
return;
}